<%@ page import="az.mecid.rssreader.model.utils.EMF" %>
<%@ page import="javax.persistence.EntityManager" %>
<%@ page import="javax.persistence.Query" %>
<%--
  Created by IntelliJ IDEA.
  User: mega
  Date: 12.03.2010
  Time: 2:01:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>

<%
    EntityManager em = EMF.get().createEntityManager();
    Query query = em.createQuery("DELETE FROM FeedItemEntity e");
    query.executeUpdate();
%>
<p align="center"> db cleaned </p><br>
<form action="cron/update" method="post">
    <input type="submit">
</form>
</body>
</html>